package com.thingple.util;

import android.content.Context;
import android.os.Handler;
import android.os.Looper;
import android.widget.Toast;

public class Alert {
    public static Context ctx;
    public static void msg(String content) {
        if (ctx == null) {
            return;
        }
        new Handler(Looper.getMainLooper()).post(new Runnable() {
            @Override
            public void run() {
                Toast.makeText(ctx, content, Toast.LENGTH_SHORT).show();
            }
        });
    }
}
